﻿using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security;

namespace Idlesoft.Utils
{
	public static class LogHelper
	{
		public static void Log(bool value)							{ OnLog(value.ToString()); }
		public static void Log(char value)							{ OnLog(value.ToString()); }
		public static void Log(char[] buffer)						{ OnLog(buffer.ToString()); }
		public static void Log(decimal value)						{ OnLog(value.ToString()); }
		public static void Log(double value)						{ OnLog(value.ToString()); }
		public static void Log(float value)							{ OnLog(value.ToString()); }
		public static void Log(int value)							{ OnLog(value.ToString()); }
		public static void Log(long value)							{ OnLog(value.ToString()); }
		public static void Log(object value)						{ OnLog(value.ToString()); }
		public static void Log(string value)						{ OnLog(value.ToString()); }
		public static void Log(uint value)							{ OnLog(value.ToString()); }
		public static void Log(ulong value)							{ OnLog(value.ToString()); }
		public static void Log(string format, params object[] args) { OnLog(string.Format(format, args));}
		public static void Log<TValue>(TValue value)				{ OnLog(value.ToString()); }

		public static event Action<string> OnLog;
	}
}
